package com.zzy.ecommerce.service;

import com.zzy.ecommerce.domain.TAccount;
import com.zzy.ecommerce.domain.TUser;

import java.util.List;

public interface AccountService {
//    Integer selectOneAccount(String userName,String passWord);
//    Integer insertOneAccount(TUser tUser);
    List<TAccount> selectAllAccount();
    Integer deleteOneAccount(Integer userId);

    Integer deleteAllAccounts();

    Integer insertOneAccount(TAccount account);

    Integer insertOneAccountByUser(TUser user);

    TAccount selectOneAccount(Integer id);


}
